package com.zbkj.crmeb.store.dao;

import com.zbkj.crmeb.store.model.SupplierDiscount;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wuzp
 * @since 2021-09-25
 */
public interface SupplierDiscountDao extends BaseMapper<SupplierDiscount> {

    @Select("SELECT d.id,d.discount,d.start_time,d.supplier_id,d.end_time,d.create_time,s.suppliers_name as supplierName from eb_supplier_discount d LEFT JOIN eb_supplier s on d.supplier_id = s.id ")
    List<SupplierDiscount> getDiscountList();

}
